package com.lzj.demo.design.adapter.service.impl;

import com.lzj.demo.design.adapter.InterfaceAdapter;
import com.lzj.demo.design.adapter.service.OrderService;
import com.lzj.demo.design.common.DemoConstant;

public class InsideOrderServiceImpl implements InterfaceAdapter {
    private OrderService orderService = new OrderService();

    @Override
    public boolean isFirst(String uid) {
        return orderService.queryUserOrderCount(uid) <= DemoConstant.ONE;
    }
}
